Measurement of work of breathing using indirect calorimeter